package com.hst.capacity.infra.persistence.jpa.merchant;

import com.hst.capacity.domain.model.entity.merchant.MerchantEntity;
import org.springframework.data.domain.Sort;
import org.springframework.data.repository.CrudRepository;

import java.util.List;
import java.util.Optional;

public interface MerchantRepository extends CrudRepository<MerchantEntity, String> {

    List<MerchantEntity> findTop2By(Sort sort);



    Optional<MerchantEntity> findByShortName(Optional<String> shortName);

    MerchantEntity findByShortName(String shortName);

}
